﻿using AutoMapper;
using TxtManager.Application.DTOs;
using TxtManager.Core.Entities;

namespace TxtManager.Application.Mapping;

public class ApplicationProfile : Profile
{
    public ApplicationProfile()
    {
        CreateMap<TextItem, TextItemDto>();
        CreateMap<TextItemDto, TextItem>()
            .ForMember(dest => dest.Id, opt => opt.Ignore());
    }
}
